﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ColumnRole.aspx.cs" Inherits="Whir_System_Module_Role_ColumnRole" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色栏目权限</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

    <script language="javascript" type="text/javascript" src="../../Js/TreeView2.js"></script>

    <script language="javascript" type="text/javascript"> 
    function OnTreeNodeChecked(evt, objTV) 
    { 
        //var element = window.event.srcElement;
        if(window.event)
        {
            element = window.event.srcElement;
        }
        else
        {
            element = evt ? evt.target : null;
        }
        if (!IsCheckBox(element))
            return; 

        var isChecked = element.checked; 
        var tree = TV2_GetTreeById(objTV);
        var node = TV2_GetNode(tree,element);

        TV2_SetChildNodesCheckStatus(node,isChecked); 

        var parent = TV2_GetParentNode(tree,node); 
        TV2_NodeOnChildNodeCheckedChanged(tree,parent,isChecked); 

    } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>用户组信息</strong></td>
            </tr>
            <tr>
                <td width="100" height="30" align="center" class="form_tdText">用户组名称</td>
                <td id="tdName" runat="server" align="left" class="form_td"></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">用户组描述</td>
                <td id="tdDesc" runat="server" align="left" class="form_td"></td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA"
            style="margin-top: 5px;">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>栏目权限</strong></td>
            </tr>
            <tr>
                <td valign="top" class="form_td">
                    <asp:TreeView ID="TreeView1" runat="server" ImageSet="XPFileExplorer" NodeIndent="15"
                        ShowCheckBoxes="All" ShowLines="True">
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="False" ForeColor="#6666AA" />
                        <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                            VerticalPadding="0px" />
                        <NodeStyle Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False" ForeColor="Black"
                            HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
                    </asp:TreeView>
                </td>
            </tr>
        </table>
        <br>
        <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="btn_default" OnClick="btnSubmit_Click" />
        <input id="Reset1" type="reset" value="重置" class="btn_default" />
    </form>
</body>
</html>
